package reflect;

import java.lang.annotation.Retention;

public class Testfanshe {
    public  static void main(String [] args)
    {
        //class字节码文件获取Class
        Student student1=new Student();
        Class c1=student1.getClass();

        Student student2=new Student();
        Class c2=student1.getClass();

        System.out.println(c1==c2);

        Class c3= Student.class;
        System.out.println(c1==c3);

        try {
            Class c4=Class.forName("reflect.Student");
            System.out.println(c1==c4);

        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        }
    }
}
